<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Disjoint Stable Set Problems - Formulations by Representatives and Combinatorial Solvers: combsolvers/BackTracking.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Disjoint Stable Set Problems - Formulations by Representatives and Combinatorial Solvers
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f30362376b2f940437069cdd83d7f430.html">combsolvers</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">BackTracking.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;time.h&gt;</code><br/>
<code>#include &lt;unistd.h&gt;</code><br/>
<code>#include &lt;assert.h&gt;</code><br/>
<code>#include &lt;<a class="el" href="CombStabSolvers_8h_source.html">CombStabSolvers.h</a>&gt;</code><br/>
<code>#include &lt;StabSolver.h&gt;</code><br/>
<code>#include &lt;<a class="el" href="BitParallel_8h_source.html">BitParallel.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="repository_8h_source.html">repository.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="heap_8h_source.html">heap.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="Graph_8h_source.html">Graph.h</a>&gt;</code><br/>
<code>#include &lt;sys/time.h&gt;</code><br/>
<code>#include &lt;sys/resource.h&gt;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for BackTracking.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="BackTracking_8cpp__incl.png" border="0" usemap="#combsolvers_2BackTracking_8cpp" alt=""/></div>
<map name="combsolvers_2BackTracking_8cpp" id="combsolvers_2BackTracking_8cpp">
<area shape="rect" id="node11" href="CombStabSolvers_8h.html" title="CombStabSolvers.h" alt="" coords="493,83,632,112"/><area shape="rect" id="node13" href="Graph_8h.html" title="A data structure representing a Simple Graph." alt="" coords="425,160,492,189"/><area shape="rect" id="node42" href="repository_8h.html" title="repository.h" alt="" coords="516,160,607,189"/><area shape="rect" id="node46" href="BitParallel_8h.html" title="BitParallel.h" alt="" coords="309,160,400,189"/><area shape="rect" id="node51" href="heap_8h.html" title="heap.h" alt="" coords="707,83,768,112"/><area shape="rect" id="node19" href="BitMapDirectlyAddressedSet_8h.html" title="BitMapDirectlyAddressedSet.h" alt="" coords="467,237,667,267"/><area shape="rect" id="node25" href="BitTools_8h.html" title="BitTools.h" alt="" coords="723,315,803,344"/><area shape="rect" id="node21" href="DirectlyAddressedSet_8h.html" title="DirectlyAddressedSet.h" alt="" coords="448,315,608,344"/><area shape="rect" id="node29" href="Hash_8h.html" title="An interface to access the perfect hashing package cmph." alt="" coords="309,315,373,344"/></map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSubTree.html">SubTree</a></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classParSubTree.html">ParSubTree</a></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSubTreeRepository.html">SubTreeRepository</a></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a51f6451ae1bc22fdd3c514260bdf2683"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BackTracking_8cpp.html#a51f6451ae1bc22fdd3c514260bdf2683">HEAPSIZE</a>&#160;&#160;&#160;(int) (1 + ((double) nthreads*sg-&gt;getBest()) / (pi * ((double) n - 0.95*((double) sg-&gt;getBest()))))</td></tr>
<tr class="memitem:ae0963ab7fae3455993b5225082525756"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BackTracking_8cpp.html#ae0963ab7fae3455993b5225082525756">INIPI</a>&#160;&#160;&#160;0.05</td></tr>
<tr class="memitem:a410b883fef19bc782035f5420d96637a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BackTracking_8cpp.html#a410b883fef19bc782035f5420d96637a">MAXPI</a>&#160;&#160;&#160;nthreads</td></tr>
<tr class="memitem:a24f0b513d4611a122ba61bd58d718225"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BackTracking_8cpp.html#a24f0b513d4611a122ba61bd58d718225">STEPI</a>&#160;&#160;&#160;30</td></tr>
<tr class="memitem:a2a5308e8cb53e5f9686923b233f3f635"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BackTracking_8cpp.html#a2a5308e8cb53e5f9686923b233f3f635">MINLAMBDA</a>&#160;&#160;&#160;6</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a9b4e110e4d9d565414ece34437eac726"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BackTracking_8cpp.html#a9b4e110e4d9d565414ece34437eac726">CLOSED_ENUM</a> { <a class="el" href="BackTracking_8cpp.html#a9b4e110e4d9d565414ece34437eac726ac157bdf0b85a40d2619cbc8bc1ae5fe2">NONE</a>, 
<a class="el" href="BackTracking_8cpp.html#a9b4e110e4d9d565414ece34437eac726a984b82836966eb2a875c79a0cb7a8936">SUBP</a>, 
<a class="el" href="BackTracking_8cpp.html#a9b4e110e4d9d565414ece34437eac726a0f2a2131af6fa6fd63d6c83b5e685a9d">SUBTREE</a>
 }</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a41232b85fe80ebdc294924622437ed0f"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BackTracking_8cpp.html#a41232b85fe80ebdc294924622437ed0f">rankCmp</a> (const void *a, const void *b)</td></tr>
<tr class="memitem:aec1a5995b2b722e1b8dc468aab09ed3c"><td class="memItemLeft" align="right" valign="top">long long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BackTracking_8cpp.html#aec1a5995b2b722e1b8dc468aab09ed3c">BT_Seq_singleEnumerate</a> (SubpModeler *sg, <a class="el" href="classSubTree.html">SubTree</a> *e)</td></tr>
<tr class="memitem:a1e3f62c3a027122f0b5e99fc59fe6291"><td class="memItemLeft" align="right" valign="top">long long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BackTracking_8cpp.html#a1e3f62c3a027122f0b5e99fc59fe6291">BT_Par_singleEnumerate</a> (SubpModeler *sg, <a class="el" href="classSubTree.html">SubTree</a> *e)</td></tr>
<tr class="memitem:af85f622e0ef71484e78cf7d27ef19ae8"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BackTracking_8cpp.html#af85f622e0ef71484e78cf7d27ef19ae8">BT_Async_multiEnumerate</a> (void *bt_p)</td></tr>
</table>
<hr/><h2>Macro Definition Documentation</h2>
<a class="anchor" id="a51f6451ae1bc22fdd3c514260bdf2683"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define HEAPSIZE&#160;&#160;&#160;(int) (1 + ((double) nthreads*sg-&gt;getBest()) / (pi * ((double) n - 0.95*((double) sg-&gt;getBest()))))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae0963ab7fae3455993b5225082525756"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define INIPI&#160;&#160;&#160;0.05</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a410b883fef19bc782035f5420d96637a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAXPI&#160;&#160;&#160;nthreads</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a2a5308e8cb53e5f9686923b233f3f635"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MINLAMBDA&#160;&#160;&#160;6</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a24f0b513d4611a122ba61bd58d718225"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define STEPI&#160;&#160;&#160;30</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="a9b4e110e4d9d565414ece34437eac726"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="BackTracking_8cpp.html#a9b4e110e4d9d565414ece34437eac726">CLOSED_ENUM</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a9b4e110e4d9d565414ece34437eac726ac157bdf0b85a40d2619cbc8bc1ae5fe2"></a>NONE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a9b4e110e4d9d565414ece34437eac726a984b82836966eb2a875c79a0cb7a8936"></a>SUBP</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a9b4e110e4d9d565414ece34437eac726a0f2a2131af6fa6fd63d6c83b5e685a9d"></a>SUBTREE</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="af85f622e0ef71484e78cf7d27ef19ae8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* BT_Async_multiEnumerate </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>bt_p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a1e3f62c3a027122f0b5e99fc59fe6291"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long long BT_Par_singleEnumerate </td>
          <td>(</td>
          <td class="paramtype">SubpModeler *&#160;</td>
          <td class="paramname"><em>sg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSubTree.html">SubTree</a> *&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aec1a5995b2b722e1b8dc468aab09ed3c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long long BT_Seq_singleEnumerate </td>
          <td>(</td>
          <td class="paramtype">SubpModeler *&#160;</td>
          <td class="paramname"><em>sg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSubTree.html">SubTree</a> *&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a41232b85fe80ebdc294924622437ed0f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int rankCmp </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 20 2012 09:14:54 for Disjoint Stable Set Problems - Formulations by Representatives and Combinatorial Solvers by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.1
</small></address>
</body>
</html>
